Skip to content

feat: add UI Build Artifacts Check workflow#1229

Merged
agiannelli-auth0 merged 6 commits into
mainfrom
chore/ui-build-check
May 22, 2026
Merged

feat: add UI Build Artifacts Check workflow#1229
agiannelli-auth0 merged 6 commits into
mainfrom
chore/ui-build-check

Conversation

@agiannelli-auth0
Copy link
Copy Markdown
Contributor

@agiannelli-auth0 agiannelli-auth0 commented May 19, 2026

Description

PRs that change ui/src/ or universal-components/src/ sometimes land without the corresponding built artifacts in main/ui/, because contributors aren't always aware that copy-build.sh needs to be run and committed.

This adds a GitHub Actions workflow that fails the PR if source changes are detected without matching artifact updates, and prints the exact command to fix it.

What the check does:

  • If ui/src/** changed but main/ui/auth0-docs-ui-* didn't → fail
  • If universal-components/src/** changed but main/ui/universal-components/** didn't → fail
  • Skips on draft PRs
  • Prints an ::error:: annotation with the command to run (cd ui && npm run copy:build or cd universal-components && pnpm run copy:assets)

In addition, build scripts (copy-build.sh, build-all.sh) now automatically bump the patch version in package.json before each build, unless the version was already manually changed since the last commit — preventing accidental double-bumps when a contributor intentionally sets a minor or major version.

References

Internal optimization

Testing

Checklist

  • I've read and followed CONTRIBUTING.md.
  • I've tested the site build for this change locally.
  • I've made appropriate docs updates for any code or config changes.
  • I've coordinated with the Product Docs and/or Docs Management team about non-trivial changes.

@agiannelli-auth0 agiannelli-auth0 requested review from a team as code owners May 19, 2026 20:43
@agiannelli-auth0 agiannelli-auth0 marked this pull request as draft May 19, 2026 20:44
@agiannelli-auth0 agiannelli-auth0 self-assigned this May 19, 2026
@agiannelli-auth0 agiannelli-auth0 marked this pull request as ready for review May 20, 2026 15:39
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

mikemimik
mikemimik previously approved these changes May 21, 2026
Comment thread ui/scripts/copy-build.sh
mikemimik
mikemimik previously approved these changes May 21, 2026
@agiannelli-auth0 agiannelli-auth0 merged commit 9586cc7 into main May 22, 2026
4 checks passed
@agiannelli-auth0 agiannelli-auth0 deleted the chore/ui-build-check branch May 22, 2026 15:49
avanscoy pushed a commit that referenced this pull request May 26, 2026
* feat: add UI Build Artifacts Check workflow
* chore: add npm version patch command to build script
* chore: update build scripts to automatically bump patch version in package.json
* chore: update build scripts to check for manual version changes before bumping patch version
* chore: add missing shebang to copy-build.sh script
* chore: update CODEOWNERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants